//
//  LLoggerShare.h
//  LLoger
//
//  Created by yiban on 16/1/26.
//  Copyright © 2016年 liuchengbin. All rights reserved.
//

#import <Foundation/Foundation.h>

#define YBLoggerVerbose(...) \
    [[LLoggerShare sharedLLoggerShare] yblogVerbose:__func__ line:__LINE__ msg:__VA_ARGS__]

#define YBLoggerInfo(...) \
    [[LLoggerShare sharedLLoggerShare] yblogInfo:__func__ line:__LINE__ msg:__VA_ARGS__]

#define YBLoggerWarn(...) \
    [[LLoggerShare sharedLLoggerShare] yblogWarn:__func__ line:__LINE__ msg:__VA_ARGS__]

#define YBLoggerError(...) \
    [[LLoggerShare sharedLLoggerShare] yblogError:__func__ line:__LINE__ msg:__VA_ARGS__]

@interface LLoggerShare : NSObject
+ (instancetype)sharedLLoggerShare;
- (void)setFileModel:(BOOL)isFile;
- (void)yblogVerbose:(const char *)func line:(int)line msg:(NSString *)fmt, ...;
- (void)yblogInfo:(const char *)func line:(int)line msg:(NSString *)fmt, ...;
- (void)yblogWarn:(const char *)func line:(int)line msg:(NSString *)fmt, ...;
- (void)yblogError:(const char *)func line:(int)line msg:(NSString *)fmt, ...;
@end
